package com.qu.OperatorSqlite.db;


import android.content.Context;

import com.qu.OperatorSqlite.DBHelper;

/**
 * 数据库管理类
 * Created by quguangle on 2017/10/26.
 */

public class DBManager extends DBHelper{
    private static DBManager instance;
    public DBManager(Context context) {
        super(context);
    }

    public DBManager(Context context,String name) {
        super(context,name);
    }

    public static void init(Context context){
        if(instance == null){
            instance = new DBManager(context);
        }
    }

    public static DBManager getInstance(){
        return instance;
    }
}
